﻿using System.Data.Linq.Mapping;

namespace WebGodServer.Database
{
  [Table(Name="Pairs")]
  class DBPair
  {
    private long id;
    [Column(IsPrimaryKey = true, CanBeNull = false, Storage = "id", IsDbGenerated = true)]
    public long Id
    {
      get { return id; }
      set { id = value; }
    }

    private long studentId;
    [Column(IsPrimaryKey = true, CanBeNull = false, Storage = "studentId")]
    public long Student_id
    {
      get { return studentId; }
      set { studentId = value; }
    }
    private long parentId;
    [Column(IsPrimaryKey = true, CanBeNull = false, Storage = "parentId")]
    public long Parent_id
    {
      get { return parentId; }
      set { parentId = value; }
    }
  }
}
